package com.powernode.crm.settings.mapper;

import com.powernode.crm.settings.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(String id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /*同账号密码获取user对象*/
    User selectUserByLoginActAndLoginPwd(@Param("loginAct") String loginAct,@Param("loginPwd") String loginPwd);

    List<User> selectAll();
}